package com.xxx.rpc.sample.client.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xxx.rpc.sample.bean.LoanReq;
import com.xxx.rpc.sample.remote.LoanService;

public class MainTest {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");
		LoanService loanService = (LoanService) ctx.getBean("loanService");
		System.out.println(loanService.loan(new LoanReq("标底1", 112L)));
		ctx.close();
	}

}
